package uml.construct.singleton;

/**
 * 单例--饿汉式<br>
 * 在类加载期间，就已经将唯一实例创建完毕<br>
 * on 2022/12/21 23:33
 */
public class EagerSingleton {
    private static EagerSingleton instance = new EagerSingleton();

    private EagerSingleton() {
    }

    public static EagerSingleton getInstance() {
        return instance;
    }
}
